{include file="public/header"}
{load href="/public/static/Content/ThemesBusiness/ListPage.css"}
<script src="/public/static/Scripts/common-binder-list-view.js"></script>
<script src="/public/static/Scripts/ScriptsEasyui/datagrid-filter.js"></script>

<script type="text/javascript">

    var data = null;
    var gridListHandler = new listGridHandler(data, 'gridListHandler', 'gridList');
    gridListHandler.formName = '标签激活记录';
    gridListHandler.enableFilter = false;
    $(function () {
        gridListHandler.bindFilter($('#gridList'));
    });
    /* gridListHandler.getEditUrl = function(recordID) {
         return '/admin/usergroup/edit/' + recordID;
     };*/

    function EditRecord(id) {
        //alert(id);return;
        if (id <= 0) {
            $.messager.alert('提示', "没有ID", 'info');
            return 0;
        } else {
            window.showBusinessForm("编辑", '/admin/goodstags/edit.html?id=' + id);
        }


    }

    function formatAction(val, row, index) {

        val = '<a href="/uploads/tags/' + row.id + '/' + row.name + '.zip" style="float:left" title="编辑">下载防伪标签</a>';
        return val;
    }

</script>


<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',border:false" class="grid-toolbar-panel" id="gridList_ToolBar">

        <!-- <a href="#" id="news" onclick="gridListHandler.showNewDialog()" class="easyui-linkbutton grid-toolbar-button"
            data-options="iconCls:'icon-add'" title="新建">新建</a> -->

    </div>
    <div data-options="region:'center',border:false">
        <table id="gridList" exusagetype="MultiSelection"
            data-options="pagination:true,pageSize:15,pageList:[10,15,20],multiSort:true,remoteSort:true,striped:true,fit:true,fitColumns:true,rownumbers:true,idField:'_ID',singleSelect: true"
            url="/admin/goodstags/activelogs.html?ajax=1">
            <thead data-options="frozen:true">
                <tr>

                    <th data-options="field:'good',halign:'center',align:'left',width:150"><span
                            class="grid-header-sortable">商品名称</span></th>
                    <th data-options="field:'number',halign:'center',align:'left',width:150"><span
                            class="grid-header-sortable">标签数量</span></th>
                    <th data-options="field:'addtime',halign:'center',align:'left',width:150"><span
                            class="grid-header-sortable">操作日期</span></th>
                    <th data-options="field:'type_name',halign:'center',align:'left',width:150"><span
                            class="grid-header-sortable">类型</span></th>

                    <th data-options="field:'admin',halign:'center',align:'left',width:150"><span
                            class="grid-header-sortable">操作人</span></th>
                </tr>
            </thead>

        </table>


    </div>
</div>
{include file="public/footer"/}